﻿using System.ComponentModel.DataAnnotations;

namespace KL.UFrame.Data.Models
{
    public class AppConfigModel
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50,ErrorMessage = "{0}长度不能超过{1}位")]
        [Display(Name ="参数键")]
        public string Key { get; set; }
        
        public string Label { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "参数值")]
        public string Content { get; set; }
    }

    public enum AppConfigKeys
    {
        TrainningEnrollSuccess,
        TrainningEnrollOutOfLimit,
        VenueBookSuccess
    }
}